package com.liuhuan.alipaydemo.service.impl;

import com.alipay.api.AlipayApiException;
import com.liuhuan.alipaydemo.pojo.AliPayBean;
import com.liuhuan.alipaydemo.service.PayModelService;
import com.liuhuan.alipaydemo.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class PayModelServiceImpl implements PayModelService {
    @Autowired
    private PayService service;

    @Override
    public String aliPay(AliPayBean alipayBean) throws AlipayApiException, IOException {
        return service.aliPay(alipayBean);
    }
}
